package se.webbzon.boltzmann.menu;

import java.awt.Color;
import java.awt.Font;
import java.awt.Image;

import se.webbzon.oschi01.resourceset.ResourceSet;

public class ButtonLayout extends TextLayout {
	
	// The position of the text relative to the button
	private final int textX, textY;
	
	// The image sets of the short and long button
	private final ResourceSet<Image> shortButton, longButton;

	/*============================================================
	Constructors
	============================================================*/
	
	public ButtonLayout(int textX, int textY,
						Font font,
						ResourceSet<Image> shortButton, 
						ResourceSet<Image> longButton) {
		super(font,Color.white);
		this.textX = textX;
		this.textY = textY;
		this.shortButton = shortButton;
		this.longButton = longButton;
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Returns the horizontal position of the text relative to
	 * the game menu item. **/
	public int getTextX() {
		return textX;
	}
	
	/** Returns the vertical position of the text relative to
	 * the game menu item. **/
	public int getTextY() {
		return textY;
	}
	
	/** Returns the image used for short buttons. **/
	public ResourceSet<Image> getShortButtonImage() {
		return shortButton;
	}
	
	/** Returns the image used for long buttons. **/
	public ResourceSet<Image> getLongButtonImage() {
		return longButton;
	}

}
